package csu.web.credit_bank.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import csu.web.credit_bank.pojo.UserResource;
import csu.web.credit_bank.pojo.vo.ResourceVO;

import java.util.List;
import java.util.Set;

public interface UserResourceService extends IService<UserResource> {
    void joinResource(String userId, String resourceId);
    IPage<ResourceVO> getJoinedResources(String userId, Page<ResourceVO> page);
    Set<String> getOwnedResourceIds(String userId, List<String> resourceIds);
}